<script setup lang="ts">
import BasicLayout from "./layouts/BasicLayout.vue";
import { useRoute } from 'vue-router';

const route = useRoute();

const shouldUseBasicLayout = () => {
  // 定义哪些路径需要使用 BasicLayout
  const pathsUsingLayout = ['/login', '/register'];

  return !(pathsUsingLayout.includes(route.path));
};
</script>

<template>
    <BasicLayout v-if="shouldUseBasicLayout()"/>
    <router-view v-else/>
</template>

<style scoped>

</style>
